package ch09;

class _16_StringEx8 {
	public static void main(String[] args) {
		String[] numbers = { "1", "2", "3", "4", "5" };
		String result1 = "";
		int result2 = 0;

		for (int i = 0; i < numbers.length; i++) {
			result1 += numbers[i];
			result2 += Integer.parseInt(numbers[i]);
		}

		System.out.println(result1); // 12345
		System.out.println(result2); // 15
	}
}